package com.stormrage.entity.exam.req;

import java.io.Serializable;

public class ExmStudentAnswerReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -9160367474251479644L;

	private Integer examId;

	private Integer correct;

	public ExmStudentAnswerReq() {
	}

	public Integer getExamId() {
		return examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public Integer getCorrect() {
		return correct;
	}

	public void setCorrect(Integer correct) {
		this.correct = correct;
	}

	public static ExmStudentAnswerReq instance(Integer examId, Integer correct) {
		ExmStudentAnswerReq entity = new ExmStudentAnswerReq();
		entity.setExamId(examId);
		entity.setCorrect(correct);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : examId - " + examId + " correct - " + correct;
	}

}
